package com.epichust.bootuqc.model.entity;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * Description:
 *执行派工单对应序列号表
 * @author:伦伦的电脑
 * @date: 2021/1/25 10:10
 */
public class Uex5KpartTaskorder implements Serializable {
    private static final long serialVersionUID = -1L;
    private Integer id;
    /**
     * 工单主键
     */
    private Integer workOrderGid;

    /**
     * 工单编码
     */
    private String workOrderCode;

    /**
     * 订单编码
     */
    private String orderCode;

    /**
     * 系统序列号/批次号(工单生成)
     */
    private String kpartCode;

    /**
     * 实际序列号/批次号(工单生成)
     */
    private String code;

    /**
     * 派工单号主键
     */
    private Integer taskOrderGid;

    /**
     * 派工单号编码
     */
    private String taskOrderCode;

    /**
     * 工序主键
     */
    private Integer opGid;

    /**
     * 工序编码
     */
    private String opCode;

    /**
     * 状态(0-待开工，1-开工，2-暂停和3-完工/已报工)
     */
    private Integer state = 0;

    private String certificateCode; // 合格证号
    private String heatNo; // 炉号
    private String certificateConfirmPerson; // 合格证审批人
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date certificateConfirmDate; // 合格证审批日期

    private Integer zijianState = 0; // 自检序列号状态(0 未质检 1 质检不合格 5 放行 7 质检合格,8 已使用)
    private Integer zhanjianState = 0; // 专检序列号状态(0 未质检 1 质检不合格 5 放行 7 质检合格,8 已使用)
    private Integer shoujianZiState = 0; // 首检自检序列号状态(0 未质检 1 质检不合格 5 放行 7 质检合格,8 已使用)
    private Integer shoujianZhState = 0; // 首检专检序列号状态(0 未质检 1 质检不合格 5 放行 7 质检合格,8 已使用)
    private Integer xunjianState = 0; // 巡检序列号状态(0 未质检 1 质检不合格 5 放行 7 质检合格,8 已使用)
    private Integer weituojianState = 0; // 委托检序列号状态(0 未质检 1 质检不合格 5 放行 7 质检合格,8 已使用)
    private Integer qitajianState = 0; // 其他检序列号状态(0 未质检 1 质检不合格 5 放行 7 质检合格,8 已使用)

    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date startWorkTime; // 开工时间
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date endWorkTime; // 完工时间

    private Integer isRuKuState = 0; // 是否入库(0:未入库 1:已入库)

    private Integer flag; // 合格证标识（0普通合格证 1返修合格证）
    private String TastNum; // 任务单编号
    private String Ncr_No; // NCR单编号
    private BigDecimal qty = new BigDecimal(0); // 报工数量

    private BigDecimal dbQty = new BigDecimal(0); // 打标次数
    private Integer dbFlag = 0; // 打标标记（0未打标，1已打标）

    private Integer qualified; // 是否合格（0合格，1不合格）

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getWorkOrderGid() {
        return workOrderGid;
    }

    public void setWorkOrderGid(Integer workOrderGid) {
        this.workOrderGid = workOrderGid;
    }

    public String getWorkOrderCode() {
        return workOrderCode;
    }

    public void setWorkOrderCode(String workOrderCode) {
        this.workOrderCode = workOrderCode;
    }

    public String getOrderCode() {
        return orderCode;
    }

    public void setOrderCode(String orderCode) {
        this.orderCode = orderCode;
    }

    public String getKpartCode() {
        return kpartCode;
    }

    public void setKpartCode(String kpartCode) {
        this.kpartCode = kpartCode;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public Integer getTaskOrderGid() {
        return taskOrderGid;
    }

    public void setTaskOrderGid(Integer taskOrderGid) {
        this.taskOrderGid = taskOrderGid;
    }

    public String getTaskOrderCode() {
        return taskOrderCode;
    }

    public void setTaskOrderCode(String taskOrderCode) {
        this.taskOrderCode = taskOrderCode;
    }

    public Integer getOpGid() {
        return opGid;
    }

    public void setOpGid(Integer opGid) {
        this.opGid = opGid;
    }

    public String getOpCode() {
        return opCode;
    }

    public void setOpCode(String opCode) {
        this.opCode = opCode;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public String getCertificateCode() {
        return certificateCode;
    }

    public void setCertificateCode(String certificateCode) {
        this.certificateCode = certificateCode;
    }

    public String getHeatNo() {
        return heatNo;
    }

    public void setHeatNo(String heatNo) {
        this.heatNo = heatNo;
    }

    public String getCertificateConfirmPerson() {
        return certificateConfirmPerson;
    }

    public void setCertificateConfirmPerson(String certificateConfirmPerson) {
        this.certificateConfirmPerson = certificateConfirmPerson;
    }

    public Date getCertificateConfirmDate() {
        return certificateConfirmDate;
    }

    public void setCertificateConfirmDate(Date certificateConfirmDate) {
        this.certificateConfirmDate = certificateConfirmDate;
    }

    public Integer getZijianState() {
        return zijianState;
    }

    public void setZijianState(Integer zijianState) {
        this.zijianState = zijianState;
    }

    public Integer getZhanjianState() {
        return zhanjianState;
    }

    public void setZhanjianState(Integer zhanjianState) {
        this.zhanjianState = zhanjianState;
    }

    public Integer getShoujianZiState() {
        return shoujianZiState;
    }

    public void setShoujianZiState(Integer shoujianZiState) {
        this.shoujianZiState = shoujianZiState;
    }

    public Integer getShoujianZhState() {
        return shoujianZhState;
    }

    public void setShoujianZhState(Integer shoujianZhState) {
        this.shoujianZhState = shoujianZhState;
    }

    public Integer getXunjianState() {
        return xunjianState;
    }

    public void setXunjianState(Integer xunjianState) {
        this.xunjianState = xunjianState;
    }

    public Integer getWeituojianState() {
        return weituojianState;
    }

    public void setWeituojianState(Integer weituojianState) {
        this.weituojianState = weituojianState;
    }

    public Integer getQitajianState() {
        return qitajianState;
    }

    public void setQitajianState(Integer qitajianState) {
        this.qitajianState = qitajianState;
    }

    public Date getStartWorkTime() {
        return startWorkTime;
    }

    public void setStartWorkTime(Date startWorkTime) {
        this.startWorkTime = startWorkTime;
    }

    public Date getEndWorkTime() {
        return endWorkTime;
    }

    public void setEndWorkTime(Date endWorkTime) {
        this.endWorkTime = endWorkTime;
    }

    public Integer getIsRuKuState() {
        return isRuKuState;
    }

    public void setIsRuKuState(Integer isRuKuState) {
        this.isRuKuState = isRuKuState;
    }

    public Integer getFlag() {
        return flag;
    }

    public void setFlag(Integer flag) {
        this.flag = flag;
    }

    public String getTastNum() {
        return TastNum;
    }

    public void setTastNum(String tastNum) {
        TastNum = tastNum;
    }

    public String getNcr_No() {
        return Ncr_No;
    }

    public void setNcr_No(String ncr_No) {
        Ncr_No = ncr_No;
    }

    public BigDecimal getQty() {
        return qty;
    }

    public void setQty(BigDecimal qty) {
        this.qty = qty;
    }

    public BigDecimal getDbQty() {
        return dbQty;
    }

    public void setDbQty(BigDecimal dbQty) {
        this.dbQty = dbQty;
    }

    public Integer getDbFlag() {
        return dbFlag;
    }

    public void setDbFlag(Integer dbFlag) {
        this.dbFlag = dbFlag;
    }

    public Integer getQualified() {
        return qualified;
    }

    public void setQualified(Integer qualified) {
        this.qualified = qualified;
    }
}
